/**
 * 任务管理 查询任务列表DATA
 */
export interface ITaskListData {
  taskName: string,
  categoryId: number | null,
  taskType: string,
  status: 1 | 0 | null,
  // insId: number[] | null,
}

/**
 * 任务管理 任务列表响应
 */
export interface ITaskListItem {
  id: number,
  categoryIds: number[] | null,
  taskName: string,
  statusLoading?: boolean,
}


export interface IExternalConfigData {
  externalType: 'pay' | 'task'
}

/**
 * 对接系统响应
 */
export interface IExternalConfigItem {
  id: number,
  name: string,
}

export interface ITaskEditData {
  taskName: string,
  taskDescription: string,
  taskType: string,
  taskCode: string,
  categoryIds: number[],
  externalMerchantConfigId: number | null,
  taskUrl: string,
}

/**
 * 任务列表 任务分类参数
 */
export interface ITaskCategoryData {
  categoryName?: string,
  status?: 1 | 0
}

/**
 * 任务列表 任务分类响应
 */
export interface ITaskCategoryItem {
  id: number,
  categoryName: string,
  status: number,
  children?: ITaskCategoryItem[]
}

export interface ICategoryEditData {
  categoryName: string,
  id?:number,
  parentId?: number,
  categoryIds?: number[]
}

/**
 * 任务记录列表 查询参数
 */
export interface ITaskRecordData {
  taskName: string,
  phone: string,
  userUnionId: string,
  status: number | null,
  // insId: number[] | null
}

export interface ITaskRecordItem {
  id: number,
  taskName: string,
}

/**
 * 获取所有任务信息 查询参数
 */
export interface ITaskInfoListData {
  taskName?: string,
  status?: 1 | 0,
  categoryId?: number
}

/**
 * 任务信息列表项
 */
export interface ITaskInfoItem {
  id: number,
  taskName: string,
  taskDescription: string,
  taskImg: string,
}

